/**
 * 
 */
package com.google.code.sip.ucenter.model;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Reference;

/**
 * 用户积分实体类
 * 
 * @author Liuye
 * 
 */
@Entity(noClassnameStored = true)
@SuppressWarnings("serial")
public class Credit extends BaseEntity {
	/**
	 * 用户
	 */
	@Reference
	private User user;

	/**
	 * 积分类型
	 */
	@Reference
	private CreditType creditType;

	/**
	 * 积分值
	 */
	private int amount;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public CreditType getCreditType() {
		return creditType;
	}

	public void setCreditType(CreditType creditType) {
		this.creditType = creditType;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
}
